const modules = {}
const require_module = require.context('./', false, /.js$/)
require_module.keys().forEach(file_name => {
    modules[file_name.slice(2, -3)] = require_module(file_name).default
})

export default {
    install(Vue) {
		for(let index in modules){
			let type = typeof modules[index]
			if(type == 'object'){
				for(let index2 in modules[index]){
					if(!Vue.prototype[index]){
						Vue.prototype[index] = {}
					}
					Vue.prototype[index][index2] = modules[index][index2]
				}
			}
		}
    }
}
